package com.tender.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
public class ConsumerController {

    @Autowired
    private RestTemplate restTemplate;

    @GetMapping("/test")
    public String getPort() {
        // return "9999";
        return restTemplate.getForEntity("http://shiro-nacos-provider/export/port", String.class).getBody();
    }

}
